package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	private Long id;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String description;
	private Boolean isSystem;
	private String name;
	private Set roleAuthorities = new HashSet(0);
	private Set adminRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(Timestamp createDate, Timestamp modifyDate, Boolean isSystem,
			String name) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.isSystem = isSystem;
		this.name = name;
	}

	/** full constructor */
	public Role(Timestamp createDate, Timestamp modifyDate, String description,
			Boolean isSystem, String name, Set roleAuthorities, Set adminRoles) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.description = description;
		this.isSystem = isSystem;
		this.name = name;
		this.roleAuthorities = roleAuthorities;
		this.adminRoles = adminRoles;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getIsSystem() {
		return this.isSystem;
	}

	public void setIsSystem(Boolean isSystem) {
		this.isSystem = isSystem;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getRoleAuthorities() {
		return this.roleAuthorities;
	}

	public void setRoleAuthorities(Set roleAuthorities) {
		this.roleAuthorities = roleAuthorities;
	}

	public Set getAdminRoles() {
		return this.adminRoles;
	}

	public void setAdminRoles(Set adminRoles) {
		this.adminRoles = adminRoles;
	}

}